package cn.hp.beauty.service.impl;

import cn.hp.beauty.domain.Role;
import cn.hp.beauty.mapper.RoleMapper;
import cn.hp.beauty.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Resource
    private RoleMapper roleMapper;

    @Override
    public List<Role> findRoleByUId(int uId) {
        return roleMapper.selectByUID(Long.valueOf(uId));
    }
}
